package com.glorysoft.xztpda.base

import android.app.Activity
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.glorysoft.xztpda.BR

/**
 * FileName: Constant
 * Author: XJH
 * Date: 2021/5/13 11:37
 * Description:
 * History:
 */
class Constant {

    companion  object : BaseObservable() {
        @get:Bindable
//        var REQUEST_URL_DEBUG: String = "http://192.168.170.225:8088" //接口地址
        var REQUEST_URL_DEBUG: String = "http://192.168.18.25:8080" //接口地址
            set(value) {
                field = value
//                 只更新本字段
                notifyPropertyChanged(BR.rEQUEST_URL_DEBUG)

                // 更新所有字段
//                notifyChange()
            }

        @get:Bindable
        var FILE_URL: String = "http://121.15.208.180:8033/Version.txt" //APK下载地址

        var CURRENT_USER: String = ""

        var IMEI_ID : String = ""

        var IP_ADDRESS : String = ""

        var VRESION: String = "1.0"

        var AUTHORITYLIST : ArrayList<String> = arrayListOf()


        var mActivityList: ArrayList<Activity> = arrayListOf()
    }
}